package com.zareal.ymcc.service;

import com.zareal.ymcc.domain.Course;
import com.baomidou.mybatisplus.service.IService;
import com.zareal.ymcc.dto.CourseDto;
import com.zareal.ymcc.vo.CourseDetailVo;
import com.zareal.ymcc.vo.CourseInfoVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Wilson
 * @since 2022-09-30
 */
public interface ICourseService extends IService<Course> {

    void save(CourseDto courseDto);
    void update(CourseDto courseDto);

    CourseDto selectById(Long id);

    void onLineCourse(Long courseId);

    void offLineCourse(Long courseId);

    void patchOnLineCourse(List<Long> ids);

    void patchOffLineCourse(List<Long> ids);

    CourseDetailVo getDetail(Long courseId);

    CourseInfoVo getInfo(String courseIds);
}
